package com.ruoyi.product.service;

import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.product.domain.ProductDoc;
import com.ruoyi.product.request.SearchRequestParams;

import java.io.IOException;
import java.util.ArrayList;


/**
 * @className: ProductSEarchService
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘洋朔
 * @date: 2025/8/7 22:27
 */
public interface ProductSearchService {
    /**
     * Es查询商品信息
     * @param params
     * @return
     */
    TableDataInfo search(SearchRequestParams params) throws IOException;

    /**
     * 同步所有数据到Es
     * @param productDocs
     */
    void saveAll(ArrayList<ProductDoc> productDocs) throws IOException;
}
